<?php
/**
 * api相关路由
 * User: raisound
 * Date: 2022/10/13
 */
use think\facade\Route;
Route::miss(function() {
    return returnResult(config("config.code.interface_error"),config("config.describe.interface_error"),[],400);
});

/***************************鉴权相关 */
Route::rule("auth/login","login/signIn"); // 登录
Route::rule("auth/index","login/index"); // 登录
Route::rule("getToken","login/getToken"); // 登录获取token

/***************************后台主页 */
Route::rule("index","index/index"); // 主页
Route::rule("dashboard","index/dashboard"); // 控制台

/***************************权限组管理 */
Route::rule("auth/group/list","auth.Group/list"); // 所有权限组
Route::rule("auth/group/edit","auth.Group/edit"); // 编辑当前权限路由

/***************************权限路由管理 */
Route::rule("auth/rule/list","auth.Rule/list"); // 当前权限所有路由


/***************************验证码相关 */
Route::rule("clickCaptcha","CaptchaApi/clickCaptcha");
Route::rule("checkClickCaptcha","CaptchaApi/checkClickCaptcha");
